home *** CD-ROM | disk | FTP | other *** search
- on buildGlossary initial, gap
- set nextCast to new(#field, member (the memberNum of member initial + 1))
- set firstLetter to upper(char 1 of field initial)
- set nextList to new(#field, member (the memberNum of member initial - (91 - charToNum(firstLetter))))
- set the name of member nextList to "GLO.LIST." & upper(firstLetter)
- repeat with i = 1 to the number of lines in field initial
- if line i of field initial = EMPTY then
- if char 1 of field nextCast <> firstLetter then
- set the textFont of member nextList to "Times New Roman"
- set firstLetter to upper(char 1 of field nextCast)
- set nextList to new(#field, member (the memberNum of member nextList + 1))
- set the name of member nextList to "GLO.LIST." & upper(firstLetter)
- end if
- put line 1 of field nextCast & RETURN after field nextList
- put upper(line 1 of field nextCast) & RETURN into line 1 of field nextCast
- set the name of member nextCast to "GLO." & line 1 of field nextCast
- set the name of member (the memberNum of member nextCast - gap) to "VOC." & line 1 of field nextCast
- set the textFont of member nextCast to "Times New Roman"
- if i <> the number of lines in field initial then
- set nextCast to new(#field, member (the memberNum of member nextCast + 1))
- end if
- next repeat
- end if
- put line i of field initial & RETURN after field nextCast
- end repeat
- end
-